package com.runen.infinitemovement.adapter;

import android.content.Context;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.runen.infinitemovement.R;
import com.runen.infinitemovement.model.entity.TopCompanyEntity;
import com.runen.infinitemovement.tool.GlideUtils;
import com.runen.infinitemovement.widget.imageview.RoundedCornersImage;

/**
 * Create by LiaoDuanHong
 * Create on 2021/02/25 17:12
 */
public class CheckJoinUsAdapter extends BaseQuickAdapter<TopCompanyEntity.DataBean, BaseViewHolder> {
    private Context context;

    public CheckJoinUsAdapter(Context context) {
        super(R.layout.item_check_join_us);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, TopCompanyEntity.DataBean item) {
        RoundedCornersImage rci_team_logo = baseViewHolder.getView(R.id.rci_team_logo);
        TextView tv_team_name = baseViewHolder.getView(R.id.tv_team_name);
        GlideUtils.loadImage(context, item.logo, rci_team_logo);
        tv_team_name.setText(item.name);
    }
}
